package com.foreknow.demo5;

/**
 * 方法与构造器重用
 */
public class OverloadDemo {
    private int age;
    private String name;
    public OverloadDemo() {

    }
    public int add(int a,int b){
        return a+b;
    }
    public int add(int a,int b,int c){
        return a+b+c;
    }

    public static void main(String[] args) {
        OverloadDemo overloadDemo = new OverloadDemo();
    }
}
